package xyz.coolcsm.security.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author 什锦
 * @since 2021-06-1
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user_info")
public class SysUserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "uid",type = IdType.INPUT)
    private String uid;

    private String nickname;

    private String realname;

    private String qq;

    private String wechat;

    private String phone;

    private String work;

    private String address;

    private String hobby;

    private String avatar;

    private String intro;

    @Version //乐观锁Version注解
    private Integer version;

    @TableField(exist = false)
    private String email;

    @TableField(exist = false)
    private Integer blogCount;

    @TableField(exist = false)
    private Integer questionCount;

    @TableField(exist = false)
    private Integer commentCount;

}
